keytool -genkey -alias serverkeys -keyalg RSA -keystore server.keystore -storepass 123456 -keypass 123456 -dname "CN=Cert A, OU=A Client, O=Polar Bear, L=Adelaide, ST=South Australia, C=AU"

keytool -export -alias serverkeys -keystore server.keystore -storepass 123456 -file server.cer

keytool -genkey -alias clientkeys -keyalg RSA -keystore client.keystore -storepass 123456 -keypass 123456 -dname "CN=Cert B, OU=B Client, O=Polar Bear, L=Adelaide, ST=South Australia, C=AU"

keytool -export -alias clientkeys -keystore client.keystore -storepass 123456 -file client.cer

keytool -import -v -keystore client.truststore -storepass 123456 -file server.cer

keytool -import -v -keystore server.truststore -storepass 123456 -file client.cer